home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 1 / Amiga Tools.iso / egs-tools / egs_dev-disk / egsdemos / egsexamples / stack_language / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-06  |  3.5 KB  |  136 lines

  1. /*
  2. ** Author: Markus van Kempen
  3. **
  4. ** Global Variablen & Structure
  5. **
  6. **
  7. ** (c) by VIONA-Development 1992/93
  8. */
  9.  
  10. /* SEE Window-Structure below */
  11.  
  12. #define   WIN_LEFT      100               /* left border of window*/
  13. #define   WIN_TOP       100               /* top edge of window */
  14.  
  15. #define   WIN_HEIGHT    120               /* ... */
  16. #define   WIN_WIDTH     220               /* ... */
  17.  
  18. #define   WIN_MINHEIGHT 120               /* MinHeight */
  19. #define   WIN_MINWIDTH  220               /* MinWidth  */
  20.  
  21.  
  22.  
  23. /*
  24. **  Variabelen
  25. */
  26.  
  27. int                 dummy;
  28. EI_MenuPtr          Menu;          /* used in main.c InitMenu.c */
  29. EG_EFontPtr         FontforMenu;
  30. struct EI_Window    *Window;
  31. ER_SimpleReqPtr     ErrorReq;
  32.  
  33. struct OpenStructTyp
  34. {
  35.     ULONG* Ort;
  36.     char * Name;
  37.     ULONG Version;
  38. };
  39.  
  40.  
  41. /*
  42.  * The EGS Lib-Bases
  43.  *
  44.  */
  45.  
  46. struct Library *EGSBase;
  47. struct Library *EGSBlitBase;
  48. struct Library *EGSLayersBase;
  49. struct Library *EGSGfxBase;
  50. struct Library *EGSIntuiBase;
  51. struct Library *EGSRequestBase;
  52. struct Library *EGBBase;
  53. struct Library *EGBMenuSelectBase;
  54. struct Library *EGBRadioBase;
  55. struct Library *EGBScrollBase;
  56. struct Library *EGBSelectBase;
  57. struct Library *EGBSetBase;
  58. struct Library *EGBTextInfoBase;
  59.  
  60. /********************************************/
  61.  
  62. struct OpenStructTyp OpenStruct[] =
  63. {
  64.   { (ULONG*) &EGSBase          , "egs.library",0               },
  65.   { (ULONG*) &EGSBlitBase      , "egsblit.library",0           },
  66.   { (ULONG*) &EGSLayersBase    , "egslayers.library",0         },
  67.   { (ULONG*) &EGSGfxBase       , "egsgfx.library",0            },
  68.   { (ULONG*) &EGSIntuiBase     , "egsintui.library",0          },
  69.   { (ULONG*) &EGBBase          , "egsgadbox.library",0         },
  70.   { (ULONG*) &EGSRequestBase   , "egsrequest.library",0         },
  71.   { (ULONG*) &EGBMenuSelectBase, "egb/gbmenuselect.library",0  },
  72.   { (ULONG*) &EGBRadioBase     , "egb/gbradio.library",0       },
  73.   { (ULONG*) &EGBScrollBase    , "egb/gbscrollbox.library",0   },
  74.   { (ULONG*) &EGBSelectBase    , "egb/gbselect.library",0      },
  75.   { (ULONG*) &EGBSetBase       , "egb/gbsets.library",0        },
  76.   { (ULONG*) &EGBTextInfoBase  , "egb/gbtextinfo.library",0    },
  77.   { 0L,0L,0L }
  78. };
  79.  
  80. struct EI_NewWindow newwin =
  81. {
  82.   WIN_LEFT,                       /* left border of window*/
  83.   WIN_TOP,                        /* top edge of window */
  84.  
  85.   WIN_WIDTH,                      /* ... */
  86.   WIN_HEIGHT,                     /* ... */
  87.  
  88.   WIN_MINWIDTH,                   /* MinWidth  */
  89.   WIN_MINHEIGHT,                  /* MinHeight */
  90.   800,                            /* MaxWidth  */
  91.   600,                            /* MaxHeight */
  92.   NULL,                           /* Screen    */
  93.                   /* sysGadget */
  94.  
  95.    EI_WINDOWDRAG |
  96.    EI_WINDOWCLOSE | EI_WINDOWSIZE |
  97.    EI_WINDOWFRONT | EI_WINDOWBACK,
  98.  
  99.   NULL,                           /* EI_GadgetPtr -> gadgets   */
  100.                   /* FirstGadget */
  101.   "Titel",                        /* Titel                     */
  102.  
  103.                   /* Flags  */
  104.  
  105.    EI_WINDOWACTIVE     |
  106.    EI_WINDOW_MENULOCAL |
  107.    EI_FRONTBACKGADGET  |
  108.    EI_WINDOWCENTER     |
  109.    EI_SIMPLE_REFRESH   |
  110.    EI_GIMMEZEROZERO    |
  111.    EI_SIZEBRIGHT       ,
  112.  
  113.                   /* IDCMP -Flags */
  114.   EI_iCLOSEWINDOW |
  115.   EI_iMOVEWINDOW  |
  116.   EI_iSIZEVERIFY  |
  117.   EI_iNEWSIZE     |
  118.   EI_iMENUPICK,
  119.  
  120.   NULL,                           /* MsgPort *p    */
  121.         /* Windowcolors  */
  122.   { 3 ,1 ,0 ,2 ,1 ,3 ,1 },        /* WinColors     */
  123.   NULL,                           /* MenuPtr       */
  124.   NULL                            /* IntuiGfxPtr   */
  125. };
  126.  
  127. struct TextAttr FontStr = {
  128.        "times.font",  /* Name */
  129.        24,            /* Y-Size */
  130.        0,
  131.        0
  132.       };
  133.  
  134.  
  135.  
  136.